﻿function Hr_Search(change_value,change_type)
{
		
	if(change_type=="1")		
	{
		document.form_search.Service_Status.value=change_value;
		document.form_search.submit();
	}
	if(change_type=="2")		
	{
		document.form_search.Service_Item.value=change_value;
		document.form_search.submit();
	}

}

function VerifyInput_Comment()
{
	
	var comment_flag=true;
	var comment_item_value;
	for(var i = 1; i<=2; i++)
	{

		comment_item_value=document.getElementById("comment_item"+(i)).value;


		if (comment_item_value=="")
		{
			comment_flag = false;
		}

	}
	if (comment_flag==false)
	{
		alert("请先给各个项目评分");
		return false;

	}
	var comment_content = document.getElementById("comment_content").value;
	if (comment_content=="")
	{
		alert("请填写内容");
		return false;
	}
	
	if (comment_content.length>2000)
	{
		alert("内容不能超过2000个字符!");
		return false;
		
	}

	return true;
	

}


function VerifyInput_HR_Order()
{
	
	var order_name = document.getElementById("order_name").value;
	if (order_name=="")
	{
		alert("请填写雇主姓名");
		return false;
	}
	var order_tel = document.getElementById("order_tel").value;
	if (order_tel=="")
	{
		alert("请填写联系电话");
		return false;
	}
	var order_service_to = document.getElementById("order_service_to").value;
	if (order_service_to=="")
	{
		alert("请填写服务对象");
		return false;
	}	

	var order_pay = document.getElementById("order_pay").value;
	if (order_pay=="")
	{
		alert("请填写计划薪酬");
		return false;
	}	

	var order_date = document.getElementById("order_date").value;
	if (order_date=="")
	{
		alert("请填写用工时间");
		return false;
	}	
	var order_address = document.getElementById("order_address").value;
	if (order_address=="")
	{
		alert("请填写家庭地址");
		return false;
	}	

	return true;
	

}




